This readme.txt file was generated by Caitlan Fealing.

GENERAL INFORMATION

1. Title of Dataset: Framing the Exit: Pollsters, Public Opinion, and the Politics of Military Withdrawal

2. Author Information:
Name: Daniel Silverman
Institution: Carnegie Mellon University
ORCID: 0000-0003-0098-0312
Email: dmsilver@andrew.cmu.edu

Name: Caitlan Fealing
Institution: Carnegie Mellon University
ORCID: 0009-0008-9584-1668
Email: cfealing@andrew.cmu.edu 

3. Description of Dataset:
Roper Data.csv: Information on all public opinion polls with at least one question that asked Americans about their attitudes toward withdrawal from a military intervention in the Roper Center for Public Opinion Research Archive�s iPoll Databank. The dataset includes 234 survey questions from 1946-2021.

Roper Iraq War Opinion Data.csv: Information on all public opinion polls with at least one question that asked Americans about their attitudes towards the Iraq war in the Roper Center for Public Opinion Research Archive�s iPoll Databank. This dataset includes 631 survey questions from 2003-2007.

Framing the Exit Experiment Raw Data.csv: Information from a representative survey experiment on Americans in the Spring 2023 designed to measure their support for withdrawal from the War in Afghanistan. This dataset includes 1,501 responses that were collected on Lucid from February 27th � March 4th, 2023.

A codebook for each dataset is included in the directory materials.

4. Data and File Overview:
Requirements: To run data scripts, the working directory must contain a folder named Data containing Roper Data.csv, Roper Iraq War Opinion Data.csv, and Framing the Exit Experiment Raw Data.csv. The working directory must also contain a folder named Plots.

Scripts: Scripts are named according to the figure or table that they produce. Running the _Run All.R script runs each script to produce all figures and provide information for all tables. This code is modular, meaning it is possible to run each script independently provided that the Load Packages.R and respective Cleaning.R scripts are found in the working directory. Simply un-comment the Dependencies section in the code to run each script independently. The required data files and the required script dependencies are listed at the top of each script.

Note: The Stargazer package was used in scripts that produce tables, but the published package was unable to generate tables in the required format.  The source Stargazer code was updated to produce the tables as shown in the paper. To recreate these tables, replace the Stargazer source code with the code in the Stargazer Package Updates.R script file included in this directory. This utility is appropriate for this study, but has not been tested sufficiently for application to other kinds of data. 

File Overview:
This directory contains a Load Packages.R script that loads each package that is required to run all scripts. 

For Polling on Withdrawal Over Time analysis, Analysis � Roper/Cleaning.R provides a dataset used for analysis in each of the respective scripts for figures and tables. These include:
- Analysis - Roper/Figure 1 - US Public Support for Withdrawal Over Time.R
- Analysis - Roper/Figure 2 - US Public Support for Withdrawal Over Time_VIA.R
- Analysis - Roper/Table 1 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S1 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S2 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S3 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S4 - Predictors of U.S. Public Support for Withdrawal 1946-2021 - Vietnam and Iraq.R
- Analysis - Roper/Table S5 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S6 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Table S7 - Predictors of US Public Support for Withdrawal 1946-2021.R
- Analysis - Roper/Figure S4 - Support for Withdrawal vs. Lack of Support for War during the Iraq War.R

For A Framing Experiment on Withdrawal Support analysis, Analysis - Experiment/Cleaning.R provides a dataset used for analysis in each of the respective scripts for figures and tables. These include:
- Analysis - Experiment/Table 2 - Effects of Framing on Attitudes Toward Withdrawal.R
- Analysis - Experiment/Figure 3 - Attitudes Toward Withdrawal Across Treatment Conditions.R
- Analysis - Experiment/Table S8 - Covariate Balance Tests.R
- Analysis - Experiment/Table S10 - Effects of Framing on Attitudes Toward Withdrawal.R
- Analysis - Experiment/Figure S1 - Interaction of Enemy Victory Frame and Political Ideology.R
- Analysis - Experiment/Figure S2 - Interactions of Enemy Victory Frame with Foreign Policy Predispositions.R
- Analysis - Experiment/Figure S3 - Interaction of Middle Ground Frame and Identifying as a Political Moderate.R

Note: Table S9 was created manually to delineate researcher-written experiment question responses.